<div class="row row-cards row-deck">
  <div class="col-12">
    <div class="card">
      <table class="table table-hover table-outline table-vcenter text-nowrap card-table">
        <thead>
          <tr>
            <th class="text-center w-1"><i class="icon-people"></i></th>
            <th>快递公司</th>
            <th>接口关键字</th>
            <th class="text-center">
              <a href="<%= new_admin_logistics_company_path %>">添加物流公司</a>
            </th>
          </tr>
        </thead>
        <tbody>
          <% @logistics_companies.each do |logistics_company| %>
          <tr>
            <td class="text-center">
              <div class="avatar d-block" style="background-image: url(<%= logistics_company.image.url %>)">
                <span class="avatar-status bg-green"></span>
              </div>
            </td>
            <td>
              <div><%= logistics_company.name %></div>
              <div class="small text-muted">
                <%= formattime(logistics_company.created_at, unit: "day") %>
              </div>
            </td>
            <td>
              <div><%= logistics_company.api_key %></div>
            </td>
            <td class="text-center">
              <div class="item-action dropdown">
                <a href="javascript:void(0)" data-toggle="dropdown" class="icon"><i class="fe fe-more-vertical"></i></a>
                <div class="dropdown-menu dropdown-menu-right">
                  <a href="<%= edit_admin_logistics_company_path(logistics_company) %>" class="dropdown-item"><i class="dropdown-icon fe fe-tag"></i> 修改 </a>
                  <%= link_to admin_logistics_company_path(logistics_company), class: "dropdown-item", method: :delete do %>
                    <i class="dropdown-icon fe fe-edit-2"></i> 删除 
                  <% end %>
                </div>
              </div>
            </td>
          </tr>
          <% end %>
        </tbody>
      </table>
    </div>
  </div>
</div>